package nowcoder.huawei;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.*;

/**
 * @author wuguojian
 * @description
 * @date 2023/4/12 下午9:46
 * https://www.nowcoder.com/practice/3245215fffb84b7b81285493eae92ff0
 **/
public class HJ3 {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner in = new Scanner(new FileReader("input/nowcoder_huawei/HJ3.txt"));
//        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            int i = in.nextInt();
            HashSet<Integer> s = new HashSet<Integer>();
            for (int j = 0; j < i; j++) {
                s.add(in.nextInt());
            }
            List<Integer> l = new ArrayList<Integer>();
            for (Integer o : s) {
                l.add(o);
            }
            Collections.sort(l);
            for (int j = 0; j < l.size(); j++) {
                System.out.println(l.get(j));
            }
        }
    }
}
